package com.fit.WatchShop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.WatchShop.interfaces.WatchWorker;

public class WatchWorkersBean implements WatchWorkers {
	
	private Map<String, WatchWorker> watchWorkers = new HashMap<String, WatchWorker>();

    public Collection<WatchWorker> retrieve() {
            return watchWorkers.values();
    }

    public WatchWorker save(WatchWorker watchWorker) {
            return watchWorkers.put(watchWorker.getName(), watchWorker);
    }

    public WatchWorker retrieveSingleWatchWorker(String name) {
            return watchWorkers.get(name);
    }


}
